<template>
  <div>
    <el-dialog
        title="编辑"
        :visible.sync="dialogVisibleEdit"
        width="30%">
    <el-form :model="ruleFormEdit" ref="ruleForm" label-width="100px" class="demo-ruleForm">
      <el-form-item label="SPU" prop="spu">
        <el-input v-model="ruleFormEdit.spu"></el-input>
      </el-form-item>
      <el-form-item label="币种" prop="cny">
        <el-input v-model="ruleFormEdit.cny"></el-input>
      </el-form-item>
      <el-form-item label="统计时间" prop="time">
        <el-input v-model="ruleFormEdit.time"></el-input>
      </el-form-item>
    </el-form>
    <span slot="footer" class="dialog-footer">
    <el-button @click="closeDialog">取 消</el-button>
    <el-button type="primary" @click="editForm()">立 即 修 改</el-button>
    </span>
    </el-dialog>
  </div>
</template>

<script>
export default {
  name: "EditItem",
  props:{
    lineId:{
      type: String,
      require: false,
      default: ''
    }
  },
  data() {
    return {
      ruleFormEdit: {
        id:'',
        spu: '',
        cny: '',
        time:''
      },
      dialogVisibleEdit:false
    }
  },
  methods:{
    closeDialog(){
      this.$parent.dialogVisibleEdit = false
    }
  }
}
</script>

<style scoped>
.modify{
  text-align: center;
}

</style>